﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home.Master" AutoEventWireup="true" CodeBehind="MasterDeleteJob.aspx.cs" Inherits="WebApplication10.MasterDeleteJob" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">


h2
{
    font-size: 1.5em;
    font-weight: 600;
}

h2
{
    font-size: 1.5em;
    color: #666666;
    font-variant: small-caps;
    text-transform: none;
    font-weight: 200;
    margin-bottom: 0px;
}

    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2>
        &nbsp;<asp:Label ID="Label2" runat="server" Font-Names="Calibri" 
            Font-Size="X-Large" Text="Delete Job Posting"></asp:Label>
</h2>
    <br />
    <br />
    <br />
    <asp:GridView ID="GridView1" runat="server" Width="602px" 
        AutoGenerateColumns="False" DataSourceID="ObjectDataSource1">
        <Columns>
            <asp:CommandField ShowDeleteButton="True" />
            <asp:BoundField HeaderText="JobID" DataField="JobID"></asp:BoundField>
            <asp:BoundField HeaderText="Job Title" DataField="Title"></asp:BoundField>
            <asp:BoundField HeaderText="DatePosted" DataField="DatePosted"></asp:BoundField>
        </Columns>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        DataObjectTypeName="WebApplication10.App_Code.Job" DeleteMethod="DeleteJob" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetJobByTitle" 
        TypeName="WebApplication10.App_Code.Job">
        <SelectParameters>
            <asp:Parameter Name="Title" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <br />
</asp:Content>
